import { postRequest, getRequest, deleteRequest, putRequest } from '/src/lib/axios';

export const gradingApi = {

    //    http://192.168.15.79:9526/maxkey-mgt-api/security/grading/apps/member?gradingName=&displayName=&username=&roleId=&roleName=&appName=&appId=&startDate=&endDate=&startDatePicker=1728433875478&endDatePicker=1731025875478&pageSize=10&pageNumber=1&pageSizeOptions=10&pageSizeOptions=20&pageSizeOptions=50
    getmemberList: (param) => {
        return getRequest(`/security/grading/apps/member`, param);
    },
    // 角色列表  http://192.168.15.79:9526/maxkey-mgt-api/access/roles/fetch?roleName=&displayName=&protocol=&startDate=&endDate=&startDatePicker=1728436013986&endDatePicker=1731028013986&pageSize=5&pageNumber=1&pageSizeOptions=5&pageSizeOptions=15&pageSizeOptions=50
    getrolesData: (param) => {
        return getRequest(`/access/roles/fetch`, param);
    },
    // http://192.168.15.79:9526/maxkey-mgt-api/security/grading/apps/memberOut?gradingName=&displayName=&username=&roleId=622178269462003712&startDate=&endDate=&startDatePicker=1728440740273&endDatePicker=1731032740273&pageSize=5&pageNumber=1&pageSizeOptions=5&pageSizeOptions=15&pageSizeOptions=50
    getrolesData2: (param) => {
        return getRequest(`/security/grading/apps/memberOut`, param);
    },
    //删除 http://192.168.15.79:9526/maxkey-mgt-api/security/grading/apps/delete?ids=1052255820047187968
    deleteGrading:(param)=>{
        return deleteRequest('/security/grading/apps/delete/?ids='+param, param);
    },
    //新增  http://192.168.15.79:9526/maxkey-mgt-api/security/grading/apps/add 
    addGrading:(param)=>{
        return postRequest(`/security/grading/apps/add`, param);
    }
};
